#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<string.h>
int main()
{
	char arr[] = "yinxin@qq.net@hehe";
	char arr2[30] = { 0 };
	strcpy(arr2, arr);
	const char* sep = "@.";
	char* ret = NULL;
	for(ret = strtok(arr2, sep); ret != NULL; ret = strtok(NULL, sep))
	{
		printf("%s\n", ret);
	}

	return 0;
}
